package com.whmnx.home.ui.activity;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.whmnx.base.bean.OrderBean;
import com.whmnx.base.constants.Constants;
import com.whmnx.base.router.RouterActivityPath;
import com.whmnx.home.BR;
import com.whmnx.home.R;
import com.whmnx.home.databinding.FragmentConfirmOrder4Binding;
import com.whmnx.home.ui.model.ConfirmOrderModel3;

import me.goldze.mvvmhabit.base.BaseActivity;

/**
 * author : huang
 * date   : 2020/9/23 0023 17:07
 * version: 1.0
 * @author Administrator
 */
@Route(path = RouterActivityPath.Home.COM)
public class ConfirmOrderActivity3 extends BaseActivity<FragmentConfirmOrder4Binding, ConfirmOrderModel3> {


    private OrderBean orderBean;

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.fragment_confirm_order4;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
          orderBean = (OrderBean) getIntent().getSerializableExtra("entity");
        if (null == orderBean){
            orderBean = Constants.ORDERBEAN;
        }
        viewModel.initToolbar(this,binding, orderBean);
    }
}
